package com.wicket.okrpbff.biz.service.dto.common;

import com.wicket.okrpbff.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffBaseMetadataTypeDto
 * @使用场景
 */
@Data
public class BffBaseMetadataTypeDto extends PagedDto implements Serializable {

    /**
     * 类型ID
     */
    @ApiModelProperty("类型ID")
    private String typeId;

    /**
     * 类型名称
     */
    @ApiModelProperty("类型名称")
    private String typeName;

    /**
     * 类型的编码
     */
    @ApiModelProperty("类型的编码")
    private String typeCode;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffBaseMetadataTypeDto that = (BffBaseMetadataTypeDto) o;
      return  typeId == that.typeId&&typeName == that.typeName&&typeCode == that.typeCode&&subjectLifeCycle == that.subjectLifeCycle&&idCardName == that.idCardName&&operationInductionId == that.operationInductionId&&userId == that.userId&&nickName == that.nickName&&operateTime == that.operateTime&&userFace == that.userFace;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), typeId,typeName,typeCode,subjectLifeCycle,idCardName,operationInductionId,userId,nickName,operateTime,userFace);
    }



}
   